package com.wlc.oop.demo08.interface3;

/**
 * @author 王立朝 wanglichao@champion-credit.com
 * @description 测试
 * @date 2021-07-08 08:22
 */
public class Test {
    public void method01(){
        Spider spider = new Spider(8);
        spider.legs = 9;
        spider.walk();
        spider.eat();
        Cat cat = new Cat();
        cat.setName("咪咪");
        cat.legs = 4;
        cat.walk();
        cat.eat();
        cat.play();
    }
    public static void main(String[] args) {
        Test test = new Test();
        test.method01();
    }
}
